<?php include "app/views/includes/header.phtml"; ?>

  <div id="wrapper" class="recherche">
    <section class="colonne-centre">

<?php include "app/views/includes/pagination.phtml"; ?>

      <table id="tableau">
        <thead>
          <tr id="thead" class="text-shadow">
            <th>Nom</th>
            <th>Fermentation</th>
            <th>Type</th>
            <th>Pays</th>
            <th>Note</th>
            <th>Image</th>
          </tr> 
        </thead>
      <tbody>
<?php if(isset($bieres)) : foreach($bieres as $biere): ?>
        <tr> 
          <td>
            <a href="?action=detail&amp;idBiere=<?php echo $biere->get('no'); ?>" class="btn btn-primary" title="Afficher la bière <?php echo $biere->get('nom'); ?>"> <?php echo $biere->get('nom'); ?></a>
          </td>
          <td>
            <a href="?action=recherche&amp;degre=<?php echo $biere->get('fermentation')->get('no'); ?>" title="Afficher toutes les bières de fermentation <?php echo $biere->get('fermentation')->get('degre'); ?>"><?php echo $biere->get('fermentation')->get('degre'); ?></a>
          </td>
          <td >
            <a href="?action=recherche&amp;type=<?php echo $biere->get('type')->get('no'); ?>" title="Afficher toutes les bières de type <?php echo $biere->get('type')->get('type'); ?>"><?php echo $biere->get('type')->get('type'); ?></a>
          </td>
          <td>
            <a href="?action=recherche&amp;pays=<?php echo $biere->get('pays')->get('no'); ?>" title="Afficher les bières du pays <?php echo $biere->get('pays')->get('title'); ?>"><?php echo $biere->get('pays')->get('title'); ?></a>
          </td>
          <td>
            <?php include "app/views/beers/notationCellule.phtml"; ?>
          </td>
          <td class="text-center">
<?php if( $biere->get('image') != "") : ?>
            <img src="<?php echo $biere->get('image'); ?>" height="50" alt="<?php echo $biere->get('nom'); ?>"  />
<?php endif; ?>
          </td>
        </tr>
<?php endforeach; endif;?>
      </tbody>
    </table>
<?php include "app/views/includes/pagination.phtml"; ?>

  </section>

  <aside class="colonne-droite">
    <?php include "app/views/includes/aside.phtml"; ?>
  </aside>

</div>


<?php include "app/views/includes/footer.phtml"; ?>